package org.bao.bean;

public class shoppingcarBean {
    private Integer userid;

    private Integer shoppid;

    private Integer shoppnum;

    private Integer isdeleted;

    //一对一映射
    private phoneBean phoneMsg;
    
    //有参构造(用户ID)   
    public shoppingcarBean(Integer userid) {
		super();
		this.userid = userid;
	}

    //有参构造(用户ID,商品ID)
    public shoppingcarBean(int userid, int shoppid) {
		super();
		this.userid = userid;
		this.shoppid = shoppid;
	}

	//无参构造
	public shoppingcarBean() {
		super();
		// TODO Auto-generated constructor stub
	}
	

	public phoneBean getPhoneMsg() {
		return phoneMsg;
	}

	public void setPhoneMsg(phoneBean phoneMsg) {
		this.phoneMsg = phoneMsg;
	}

	public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getShoppid() {
        return shoppid;
    }

    public void setShoppid(Integer shoppid) {
        this.shoppid = shoppid;
    }

    public Integer getShoppnum() {
        return shoppnum;
    }

    public void setShoppnum(Integer shoppnum) {
        this.shoppnum = shoppnum;
    }


    public Integer getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Integer isdeleted) {
        this.isdeleted = isdeleted;
    }

	@Override
	public String toString() {
		return "shoppingcarBean [userid=" + userid + ", shoppid=" + shoppid + ", shoppnum=" + shoppnum + ", isdeleted="
				+ isdeleted + ", phoneMsg=" + phoneMsg + ", getPhoneMsg()=" + getPhoneMsg() + ", getUserid()="
				+ getUserid() + ", getShoppid()=" + getShoppid() + ", getShoppnum()=" + getShoppnum()
				+ ", getIsdeleted()=" + getIsdeleted() + "]";
	}

}